package org.xin.security.service;

import org.springframework.cache.annotation.Cacheable;
import org.xin.framework.base.service.IBaseService;
import org.xin.security.pojo.bo.SecurityUser;
import org.xin.security.pojo.entity.SysUser;

import javax.servlet.http.HttpServletRequest;

/**
* <p>
    * 系统模块-用户表 服务接口
    * </p>
*
* @author: xin
* @date: Create in 2021-09-29
*/

public interface ISysUserService extends IBaseService<SysUser> {
    /**
     * @desc <p> 当前登录用户信息 </p>
     * @author xin
     * @date 2021/10/5
     */

    SecurityUser loginUserInfo(HttpServletRequest request);
    /**
     * @desc <p> 检查用户邮箱是否唯一 </p>
     * @author xin
     * @date 2021/10/2
     */
    Boolean checkUserEmailUnique(String email);

    /**
     * @desc <p> 检查用户电话是否唯一 </p>
     * @author xin
     * @date 2021/10/2
     */
    Boolean checkUserPhoneUnique(String phone);
}

